package com.junjun.ssm.dao;


import com.junjun.ssm.entity.MovieEntity;
import com.junjun.ssm.entity.UserEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface UserDao extends CrudRepository<MovieEntity,Long> {


    @Query( "from UserEntity u where u.userName=?1 and u.password=?2")
    UserEntity findByNameAndPassword(String userName, String password);
}
